package yelmor.comm100.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import yelmor.comm100.domain.CoUser;
import yelmor.comm100.domain.CoUserRole;

import java.util.List;

/**
 * Created by yel on 4/26/16.
 */
public interface CoUserRoleRepository extends CrudRepository<CoUserRole, Integer> {
/*  @Query("select u from CoUserRole where u.userName = ?1")
  List<CoUserRole> findByUserName(String userName);*/
  List<CoUserRole> findByUserName(String userName);
}
